package com.jd.gitdemo0702.controller;

import com.jd.gitdemo0702.bean.R;
import com.jd.gitdemo0702.bean.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class UserController {

    @RequestMapping("/user")
    public R<User> user() {
        // 假设来自数据库
        User user = new User(123, "张大雷");
        return R.success("206", "查询成功", user);
    }
}
